package com.deng.performance.first.view
{
	import com.deng.common.vo.EmployeeVo;
	
	import mx.controls.Label;
	import mx.events.FlexEvent;
	
	import flash.events.KeyboardEvent;
	
	import mx.controls.Alert;
	import mx.controls.TextInput;
	import mx.resources.ResourceManager;
	import mx.rpc.events.ResultEvent;
	import mx.rpc.remoting.RemoteObject;
	public class CZ_JingYingJiXiaoLB extends Label
	{
		private var pvo:EmployeeVo;
		public function CZ_JingYingJiXiaoLB()
		{
			this.addEventListener(FlexEvent.CREATION_COMPLETE,showHandler);
			this.addEventListener(FlexEvent.SHOW,showHandler);
			super();
		}
		private function showHandler(event:FlexEvent):void{
			pvo = this.data as EmployeeVo;
			var cz:Number = new Number(pvo.pay_jingyingjixiao) - new Number(pvo.cal_jingyingjixiao);
			if(cz > 0){
				this.text = "+"+cz.toFixed(4)+"";
			}else if(cz < 0){
				this.text = cz.toFixed(4)+"";
			}else{
				this.text = cz.toFixed(4)+"";
			}
		}
	}
}